home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / technote / tchntstc.sit / Technical Notes Stack 3.2.1 / Technical Notes Stack 3.2.1 / background_20600.txt < prev    next >
Encoding:
Text File  |  1990-01-08  |  6.9 KB  |  329 lines

  1. -- background: 20600 from stack: in.1
  2. -- bmap block id: 23457
  3. -- flags: 0000
  4. -- background id: 0
  5. -- name: Opening Cards
  6. ----- HyperTalk script -----
  7. on closeBackground
  8.   -- let the stack be modified
  9.   -- this is set on the openCard handlers of the respective cards
  10.   set cantmodify of this stack to false
  11. end closeBackground
  12.  
  13. -------------------
  14. -- arrowKey handler for Opening Cards bg
  15. -------------------
  16. on arrowKey key
  17.   if key is "right" then
  18.     goNext
  19.   else if key is "left" then
  20.     goPrev
  21.   else if key is "up" then
  22.     pass arrowKey
  23.     exit arrowKey
  24.   else if key is "down" then
  25.     pass arrowKey
  26.     exit arrowKey
  27.   end if
  28. end arrowKey
  29.  
  30. -----------------
  31. -- goNext handler for Opening Cards bg
  32. -----------------
  33. on goNext
  34.   if the optionKey is "down" then
  35.     visual effect wipe left
  36.     go next card
  37.   else -- no option key down
  38.     exit goNext
  39.   end if
  40. end goNext
  41.  
  42. -----------------
  43. -- goPrev handler for Opening Cards bg
  44. -----------------
  45. on goPrev
  46.   if the optionKey is "down" then
  47.     visual effect wipe right
  48.     go prev card
  49.   else -- no option key down
  50.     exit goPrev
  51.   end if
  52. end goPrev
  53.  
  54.  
  55. -- part 3 (button)
  56. -- low flags: 00
  57. -- high flags: 0004
  58. -- rect: left=228 top=316 right=341 bottom=253
  59. -- title width / last selected line: 0
  60. -- icon id / first selected line: 111 / 111
  61. -- text alignment: 1
  62. -- font id: 0
  63. -- text size: 12
  64. -- style flags: 0
  65. -- line height: 16
  66. -- part name: Prev
  67. ----- HyperTalk script -----
  68. on mouseUp
  69.   send mouseUp to cd fld "Help Arrows"
  70. end mouseUp
  71.  
  72.  
  73. -- part 4 (button)
  74. -- low flags: 00
  75. -- high flags: 0004
  76. -- rect: left=178 top=316 right=341 bottom=214
  77. -- title width / last selected line: 0
  78. -- icon id / first selected line: 121 / 121
  79. -- text alignment: 1
  80. -- font id: 3
  81. -- text size: 9
  82. -- style flags: 0
  83. -- line height: 12
  84. -- part name: Index
  85. ----- HyperTalk script -----
  86. on mouseUp
  87.   if the icon of me = "121" then
  88.     send mouseUp to cd fld "Help Go Index"
  89.   else
  90.     if the icon of me = "122" then
  91.       send mouseUp to cd fld "Help Index"
  92.     end if
  93.   end if
  94. end mouseUp
  95.  
  96.  
  97. -- part 5 (button)
  98. -- low flags: 00
  99. -- high flags: 0004
  100. -- rect: left=137 top=316 right=341 bottom=173
  101. -- title width / last selected line: 0
  102. -- icon id / first selected line: 119 / 119
  103. -- text alignment: 1
  104. -- font id: 3
  105. -- text size: 9
  106. -- style flags: 0
  107. -- line height: 12
  108. -- part name: Subject
  109. ----- HyperTalk script -----
  110. on mouseUp
  111.   if the icon of me = "119" then
  112.     send mouseUp to cd fld "Help Go Subject"
  113.   else
  114.     if the icon of me = "120" then
  115.       send mouseUp to cd fld "Help Subject"
  116.     end if
  117.   end if
  118. end mouseUp
  119.  
  120.  
  121. -- part 6 (button)
  122. -- low flags: 00
  123. -- high flags: 0004
  124. -- rect: left=55 top=316 right=341 bottom=91
  125. -- title width / last selected line: 0
  126. -- icon id / first selected line: 115 / 115
  127. -- text alignment: 1
  128. -- font id: 3
  129. -- text size: 9
  130. -- style flags: 0
  131. -- line height: 12
  132. -- part name: Number
  133. ----- HyperTalk script -----
  134. on mouseUp
  135.   if the icon of me = "115" then
  136.     send mouseUp to cd fld "Help Go Number"
  137.   else
  138.     if the icon of me = "116" then
  139.       send mouseUp to cd fld "Help Number"
  140.     end if
  141.   end if
  142. end mouseUp
  143.  
  144.  
  145. -- part 7 (button)
  146. -- low flags: 00
  147. -- high flags: 0004
  148. -- rect: left=3 top=316 right=341 bottom=39
  149. -- title width / last selected line: 0
  150. -- icon id / first selected line: 106 / 106
  151. -- text alignment: 1
  152. -- font id: 3
  153. -- text size: 9
  154. -- style flags: 0
  155. -- line height: 12
  156. -- part name: Home
  157. ----- HyperTalk script -----
  158. on mouseUp
  159.   send mouseUp to cd fld "Help Home"
  160. end mouseUp
  161.  
  162.  
  163. -- part 8 (button)
  164. -- low flags: 00
  165. -- high flags: 2004
  166. -- rect: left=257 top=316 right=341 bottom=282
  167. -- title width / last selected line: 0
  168. -- icon id / first selected line: 113 / 113
  169. -- text alignment: 1
  170. -- font id: 0
  171. -- text size: 12
  172. -- style flags: 0
  173. -- line height: 16
  174. -- part name: Next
  175. ----- HyperTalk script -----
  176. on mouseUp
  177.   send mouseUp to cd fld "Help Arrows"
  178. end mouseUp
  179.  
  180.  
  181. -- part 10 (button)
  182. -- low flags: 00
  183. -- high flags: 0004
  184. -- rect: left=324 top=316 right=341 bottom=349
  185. -- title width / last selected line: 0
  186. -- icon id / first selected line: 125 / 125
  187. -- text alignment: 1
  188. -- font id: 0
  189. -- text size: 12
  190. -- style flags: 0
  191. -- line height: 16
  192. -- part name: Illustration
  193. ----- HyperTalk script -----
  194. on mouseUp
  195.   send mouseUp to cd fld "Help Illustrations"
  196. end mouseUp
  197.  
  198.  
  199. -- part 11 (button)
  200. -- low flags: 00
  201. -- high flags: 0004
  202. -- rect: left=354 top=316 right=341 bottom=379
  203. -- title width / last selected line: 0
  204. -- icon id / first selected line: 130 / 130
  205. -- text alignment: 1
  206. -- font id: 0
  207. -- text size: 12
  208. -- style flags: 0
  209. -- line height: 16
  210. -- part name: GoNote
  211. ----- HyperTalk script -----
  212. on mouseUp
  213.   send mouseUp to cd fld "Help GoNote"
  214. end mouseUp
  215.  
  216.  
  217. -- part 12 (button)
  218. -- low flags: 00
  219. -- high flags: 0004
  220. -- rect: left=384 top=316 right=341 bottom=409
  221. -- title width / last selected line: 0
  222. -- icon id / first selected line: 129 / 129
  223. -- text alignment: 1
  224. -- font id: 0
  225. -- text size: 12
  226. -- style flags: 0
  227. -- line height: 16
  228. -- part name: Find
  229. ----- HyperTalk script -----
  230. on mouseUp
  231.   send mouseUp to cd fld "Help Find"
  232. end mouseUp
  233.  
  234.  
  235. -- part 13 (button)
  236. -- low flags: 00
  237. -- high flags: 0004
  238. -- rect: left=444 top=316 right=341 bottom=469
  239. -- title width / last selected line: 0
  240. -- icon id / first selected line: 131 / 131
  241. -- text alignment: 1
  242. -- font id: 0
  243. -- text size: 12
  244. -- style flags: 0
  245. -- line height: 16
  246. -- part name: Print
  247. ----- HyperTalk script -----
  248. on mouseUp
  249.   send mouseUp to cd fld "Help Print"
  250. end mouseUp
  251.  
  252.  
  253. -- part 14 (button)
  254. -- low flags: 00
  255. -- high flags: 0004
  256. -- rect: left=414 top=316 right=341 bottom=439
  257. -- title width / last selected line: 0
  258. -- icon id / first selected line: 127 / 127
  259. -- text alignment: 1
  260. -- font id: 0
  261. -- text size: 12
  262. -- style flags: 0
  263. -- line height: 16
  264. -- part name: Disk
  265. ----- HyperTalk script -----
  266. on mouseUp
  267.   send mouseUp to cd fld "Help Save"
  268. end mouseUp
  269.  
  270.  
  271. -- part 15 (button)
  272. -- low flags: 00
  273. -- high flags: 0004
  274. -- rect: left=474 top=316 right=341 bottom=510
  275. -- title width / last selected line: 0
  276. -- icon id / first selected line: 7417 / 7417
  277. -- text alignment: 1
  278. -- font id: 3
  279. -- text size: 9
  280. -- style flags: 0
  281. -- line height: 12
  282. -- part name: Back
  283. ----- HyperTalk script -----
  284. on mouseUp
  285.   send mouseUp to cd fld "Help Back"
  286. end mouseUp
  287.  
  288.  
  289. -- part 16 (button)
  290. -- low flags: 00
  291. -- high flags: 2004
  292. -- rect: left=294 top=316 right=341 bottom=319
  293. -- title width / last selected line: 0
  294. -- icon id / first selected line: 108 / 108
  295. -- text alignment: 1
  296. -- font id: 0
  297. -- text size: 12
  298. -- style flags: 0
  299. -- line height: 16
  300. -- part name: Help
  301. ----- HyperTalk script -----
  302. on mouseUp
  303.   help
  304. end mouseUp
  305.  
  306.  
  307. -- part 19 (button)
  308. -- low flags: 00
  309. -- high flags: 0004
  310. -- rect: left=96 top=316 right=341 bottom=132
  311. -- title width / last selected line: 0
  312. -- icon id / first selected line: 117 / 117
  313. -- text alignment: 1
  314. -- font id: 3
  315. -- text size: 9
  316. -- style flags: 0
  317. -- line height: 12
  318. -- part name: Date
  319. ----- HyperTalk script -----
  320. on mouseUp
  321.   if the icon of me = "117" then
  322.     send mouseUp to cd fld "Help Go Date"
  323.   else
  324.     if the icon of me = "118" then
  325.       send mouseUp to cd fld "Help Date"
  326.     end if
  327.   end if
  328. end mouseUp
  329.